package com.ruoyi.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wechat.mapper.DetailsMapper;
import com.ruoyi.wechat.domain.Details;
import com.ruoyi.wechat.service.IDetailsService;

/**
 * 营地预约详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-01
 */
@Service
public class DetailsServiceImpl implements IDetailsService 
{
    @Autowired
    private DetailsMapper detailsMapper;

    /**
     * 查询营地预约详情
     * 
     * @param detailId 营地预约详情主键
     * @return 营地预约详情
     */
    @Override
    public Details selectDetailsByDetailId(String detailId)
    {
        return detailsMapper.selectDetailsByDetailId(detailId);
    }

    /**
     * 查询营地预约详情列表
     * 
     * @param details 营地预约详情
     * @return 营地预约详情
     */
    @Override
    public List<Details> selectDetailsList(Details details)
    {
        return detailsMapper.selectDetailsList(details);
    }

    /**
     * 新增营地预约详情
     * 
     * @param details 营地预约详情
     * @return 结果
     */
    @Override
    public int insertDetails(Details details)
    {
        return detailsMapper.insertDetails(details);
    }

    /**
     * 修改营地预约详情
     * 
     * @param details 营地预约详情
     * @return 结果
     */
    @Override
    public int updateDetails(Details details)
    {
        return detailsMapper.updateDetails(details);
    }

    /**
     * 批量删除营地预约详情
     * 
     * @param detailIds 需要删除的营地预约详情主键
     * @return 结果
     */
    @Override
    public int deleteDetailsByDetailIds(String[] detailIds)
    {
        return detailsMapper.deleteDetailsByDetailIds(detailIds);
    }

    /**
     * 删除营地预约详情信息
     * 
     * @param detailId 营地预约详情主键
     * @return 结果
     */
    @Override
    public int deleteDetailsByDetailId(String detailId)
    {
        return detailsMapper.deleteDetailsByDetailId(detailId);
    }
}
